Wearing compression socks to bed can be a safe and effective way to promote healthy circulation and reduce leg pain and swelling. However, it's important to follow the advice of a healthcare provider and choose socks that are designed for nighttime use.