Celibacy as Punishment?

Playing

The Doctors discuss an Idaho judge who recently sentenced a man convicted of statutory rape to a 1-year alternative program. If completed, this will include require the man to remain celibate until he gets married. Is this enforceable?