Can I change the action that occurs when I close my laptop's lid?
macs do have hibernate and sleep, the default on newer machines is a combination. the closing of the lid saves to disk for hibernate but on wakeup if the battery has not run out it wakes from sleep. Macworld explanation

You can change it from the command line

sudo pmset -a hibernatemode 3


Or via preference pane

Apple docs