Can you get sick from not wearing gloves and a hat outside during cold weather for more than 4 hours?

Depends. You will not get sick overall from the cold alone but it depends upon how cold it is. If you do not wear a hat and gloves in serious cold you could get frost bitten. Cold will lower your susceptibility to certain organisms but you must be exposed to them as well as to the cold.