Unix OS may be safer but is not invincible

I read that the invincible Macintosh operating system (Mac OS X) was hacked into in 30 minutes. Does this mean I must be more careful about using my Mac? Is the Mac now as vulnerable as Windows? I thought the Mac ran on Unix and was, therefore, safer?

Name and address supplied