The answer is yes, but with some caveats. Wearing compression socks to bed can provide a number of benefits for people who experience leg pain or swelling. For example, it can help promote circulation during periods of inactivity, such as when you're sleeping.