Can a jedi be married?

No. Supposedly no. But there was one who was married, and because of that, sad events take place. His name was Anakin.