If you buy a new Mac just before a new OS release, or it is supplied with a previous release of the OS, there should be some vouchers in there which allow you to freely upgrade to the newer version.
Any iLife programmes supplied free with the machine are unlikely to be upgraded the same way, and a new OS doesn't come with iLife included.