Technically yes. You can use built-in cheat codes or third-party trainers in offline single-player. However, there are major downsides.
Press Enter, type code, press Enter. Codes are case-insensitive.
WhoIsJohnGalt – Instant win (mission)Bunker55AliveInside – God mode (units invulnerable)TerribleTerribleDamage – One-hit killMoreDotsMoreDots – Remove fog of warCatFoodForPrawnGuns – Fast build / no cooldownsSpectralTiger – 5000 MineralsRealMenDrillDeep – 5000 VespeneNeverGiveUpNeverSurrender – Continue playing after mission failureSame consequences. Higher malware risk. Blizzard's Warden doesn't scan offline single-player, but modified game files can corrupt saves.
Cheats are a "see the story" button—but you lose the core reward loop. Play on Casual first; the satisfaction of improving is the game.