They absolutely can for simpler cases like this, especially recent GPT 5.x models are amazing at such lower-level compiler work.