Yes, sleep quality can have a major impact on the risk of panic attacks. Insufficient or disrupted sleep can increase sensitivity to stress and anxiety, which can lead to or worsen panic attacks. Maintaining good sleep habits is an important part of panic disorder management.