In most cases, a doctor will recommend removing compression socks before going to bed. But they may advise wearing them overnight if you have venous ulcers or are recovering from venous surgery.