Yes, as long as the game's age rating allows it. A twelve-year-old can walk out of a shop with a game rated 12 or lower, though a store may ask for proof of age at the till if no adult is with them.
Ratings above the buyer's age are where it stops. That same twelve-year-old can't legally purchase an 18-rated title such as Grand Theft Auto, and most retailers will refuse the sale rather than risk a fine.