Ex and boyfriend

Is it bad if I talk to my ex (as a friend) but I have a boyfriend?