Yes, provided the result accurately represents you. AI headshots have become common enough on professional profiles that they no longer stand out, and recruiters care far more about whether a photo looks professional and current than about how it was produced.
The standard to hold yourself to is the same one that applies to any profile photo. Improving the lighting, cleaning up a distracting background, and wearing a polished version of clothing you would genuinely wear to work are all entirely fair. Inventing a different face, a different body, or a noticeably younger you is not, and it will be obvious the first time you meet anyone.
A few things separate a good AI headshot from an uncanny one. Use recent reference photos rather than ones from several years ago. Check the details that generation still gets subtly wrong, particularly hands, ears, teeth, collars, and glasses, and discard anything that looks off. And keep the wardrobe consistent with your industry, since a suit reads differently in law than in a startup.
What you wear matters more than most people expect, because a headshot crops between the collarbone and mid-chest, which makes the collar and neckline effectively the entire outfit.