Pets can both positively and negatively affect sleep quality. Having a pet in the bedroom can provide comfort and a sense of security, which may help some people fall asleep faster and feel more relaxed. However, pets can also disrupt sleep by snoring, moving around, or needing attention during the night. It's important to consider your own sleep habits and preferences when deciding whether to allow pets in the bedroom.