AFAIK in most 1st world countries you cannot have a written rule for that, because it's not legal, it conflicts with private life (and there are quite few bosses who marry their secretaries, AFAIK).
Of course, in many companies this rule could be unwritten, as in "if you have relationship...