Here is a link to a very well written article on the issue of fraternization. The point is that no level of military code or discipline can stop human nature. Put members of the opposite sex together in any organization and there’s going to be fraternization. Put them in situations where they are away from their spouses, facing constant danger or long stretches of boredom, and human nature will trump discipline. The most intriguing part of the article is to Tito’s strict policy against fraternization in his Yugoslav army during the war, where the penalty was death. There were apparently dozens of his troops executed for this offense. If people are willing to risk death in exchange for some human affection in a war zone, then lesser punishment is not going to have a major effect.
http://hamptonroads.com/2012/07/fraternization-given-military
I saw it first hand when me and a buddy volunteered after Desert Storm to stay and help load ships to return tanks and tracks back home. We were both in an infantry unit with no prior experience working with a unit with females. (some transportation unit)
We watched with incredulity at all the grabassing and guys and gals trying to impress one another and wondered if it was like this ‘back home’,too. We wondered how it was they ever got anything done. We later found out they had some attrition due to pregnancy.