Internet Connection Lost While Hibernating

I put my computer in a sleep or hibernate mode with internet connection for most of the time so that I don’t miss important software updates from the internet like antivirus update, but it has not been working out because I don’t get the updates when I put it back on. Does it mean that when a computer is in a sleep mode, it loses its connection to the internet and is there a way in which a computer can be hibernated without losing internet connections?
