Can ex-boyfriends and girlfriends be friends after breakup?

Yeah sure, its even better if you remain friends.
It's certainly possible and not even too uncommon. Some claim to get along better after a relationship than they did during one. There can be strains though, and generally ex-boyfriends and ex-girlfriends will probably drift apart rather than stay close friends for a variety of reasons.