Is it okay to not be friends after a breakup or a rejection?

It is up to the involved party cause for me it was not possible to be friends. It is not easy to watch a ex hook up with a friend or some jerk.