Are we allowed to have pets in Islam eg cats, rabbits etc. And is it true that Angels do not enter a house which has pets ie cats?

Yes you’re allowed
There are narrations that point to angels not entering house if there is a dog