I recall Active Duty having just that problem, and an article about an investigation back in 2001 stated "If investigators find that Marines were involved in "pornographic activity" they would likely face disciplinary action under the Uniform Code of Military Justice (UCMJ) for charges including "bringing discredit upon the uniform and the service" and for conduct "not compatible" with service in the military, according to Marine officers."

As to being gay, it added "If determined to have any involvement in homosexual acts, it is also possible that those Marines would be in violation of the military's "don't ask, don't tell" policy prohibiting any public declaration of a gay sexual preference"

Even with the "don't ask don't tell" removed from here on out, I would imagine that the first part about the Uniform Code of Military Justice would still be pertinent, and upheld.