Yu-Gi-Oh!: No. A monster that declares an attack remains in Attack Position until the End Phase. You cannot manually change it to Defense Position in Main Phase 2 after attacking. (Exception: Card effects like Goblindbergh or Battle Mania can force a position change, but not a manual Main Phase 2 change.)
Magic: The Gathering: Yes. Creatures tap to attack. In your Second Main Phase (post-combat), you can cast spells/abilities that grant vigilance/untap, but you cannot manually "set to defense." The closest equivalent is giving it Vigilance (attacks without tapping) or using an instant to tap/untap it.
Key Distinction: Yu-Gi-Oh has explicit Position rules; MTG uses Tapping/Untapping.