Yes, it is safe to have a pet rat as long as you provide proper care and hygiene for the animal. Pet rats can make great companions and are generally clean animals. Just make sure to regularly clean their cage, provide them with a balanced diet, and handle them gently to ensure their well-being.