Whimpering in sleep is not always a sign of pain or discomfort. However, if your dog is whimpering frequently during sleep or showing other signs of distress, such as restlessness or twitching, it may be a sign of an underlying health issue. In such cases, you should consult with your veterinarian to rule out any possible medical conditions.