No. Playing an age-restricted game is not itself an offence in most countries, including Australia and the United Kingdom. Age ratings are enforced at the point of sale, not at the point of play.
What happens in practice is that a shop will refuse to sell a mature-rated title to someone under the recommended age, and will usually ask for identification. If a parent or guardian buys the game and gives it to them, that is a family decision rather than a legal matter.
It is still worth taking the rating seriously. Ratings exist because of violence, language and sexual content that many younger players find upsetting, so reading the content descriptors is more useful than treating the label as a challenge. Some online services also enforce age limits on accounts, which is a separate matter from the box rating.