Yes, it is generally safe to keep pet hamsters as long as you provide them with a suitable habitat, proper care, and attention. Make sure to provide them with a safe and comfortable environment, a balanced diet, fresh water, and regular veterinary check-ups to ensure their well-being. Also, handle them gently and supervise interactions with other pets or small children to prevent any accidents.