Generally, no, you cannot simply grab free hats on Roblox. Most of them need to be obtained through the usual means.
That said, there is one exception worth keeping an eye on: sometimes you can score a hat by entering a contest. So if a giveaway or competition pops up, that is your chance to pick one up without spending anything.