Yes, it can be ethical to keep pet rodents as long as they are provided with appropriate care, a suitable environment, and their welfare needs are met. It is important to ensure they have enough space to move around, proper nutrition, mental stimulation, and regular veterinary care. Additionally, it's essential to research and understand the specific needs of the particular rodent species you are considering as a pet.