Is this an unhealthy sleeping habit? Sleep with cat who comes and goes all night.

Not great. Probably not the best idea particularly if your cat is waking you up frequently at night. It is very important for our health to get a good nights sleep.