No, you can't get a Level X Pokémon in the video games. Level X is a feature of the trading card game, where you can buy those cards in shops.
So if you're after a Level X Pokémon, look to the TCG rather than the mainline games, where that concept doesn't exist.