Short answer: yes
Longer answer: There are perfectly reasonable reasons for the laws protecting him, not the least of which is that I don't care what your situation is, no one should be forced out into the cold overnight. I don't care what the fight was over or that they're broken up, it is reasonable for him to expect an amount of time to find a new residence when someone asks him to leave.
My apartment can kick me out, but they have to give me two months notice. This is in my lease, and I think it's totally fair. In addition, if I wanted to leave, I have to give THEM two months notice.
Now he COULD be a jackass and not move out until the law forces him out, but hopefully your friend and the ex can be reasonable people about this crappy situation and just put up with things until he finds a new place.