Yep. That's why AppleCare is such a good idea. I have a 2006 MacBook Pro and the motherboard failed just a month shy of my AppleCare expiring. They replaced it, free of charge. Thankfully I did not lose any data. I'm usually good about making backups, but had gotten a bit lazy a few months prior.
I know I can automate backing up my computer, but a few years ago I was having trouble deciding between a remote server or an external hard drive. Maybe a good idea to revisit this!

