Can I make a relationship with my boss work? I don’t want to be the subject of office gossip or break company rules

Can I make a relationship with my boss work? I don’t want to be the subject of office gossip or break company rules