Opening a can of worms

I heard that in the 1st world war, soldiers who were missing their girlfriends, used a can of worms! This would predate the USA derivation. (sorry about the awefulness of this!)