Yes, pets have been known to sense earthquakes before they occur. They may exhibit unusual behavior such as restlessness, barking, or hiding that can serve as a warning sign that an earthquake may be imminent. This is thought to be due to their acute senses and ability to pick up on subtle changes in their environment.