Yes, though how you do it depends on the game. Handheld titles in the relevant generation can be manipulated with a cheat device or a save editor, and various glitches have circulated for specific versions.
Be aware that cheated Pokémon are usually flagged as hacked and cannot be used in official tournaments or traded safely. If you want a legitimate Lugia, the in-game event distributions are the clean route.