In the New Jedi Order, Jedi can get married, have children, the whole shabang. Jedi in the Old Order, however cannot, as it is believed physical attachment can lead to the Dark Side. Does this mean no hiring of prostitutes, because it is one thing to not get emotionally attached to a prostitute and a different thing entirely to fall in love with someone? Any mention in EU or legends, anyone?
Jedi are allowed to have sex, they aren't allowed to have an attachments - make of that what you will.
Quoting Mr. Lucas himself:
Jedi Knights have sex after all, according to George Lucas, creator of the characters' hit sci-fi series Star Wars. Speculation that the lightsaber-wielding warriors were supposed to live a monk-like existence has been rife since details of Attack Of The Clones began to leak out. In the new flick Jedi Anakin Skywalker's character shares forbidden love with Queen Amidala, but Lucas says it's romance, rather than hanky panky, which is banned by the Jedi code. He says, "Jedi Knights aren't celibate - the thing that is forbidden is attachments - and possessive relationships." No Jedi Knight has yet been seen with a partner in any of the five Star Wars movies.