Yes, many people wear compression socks throughout the day, especially during work, travel, or long periods of standing or sitting. Most people take them off before bed unless told otherwise by a healthcare provider.
If your socks were prescribed for a medical condition, be sure to follow the recommended wear time.