It can be done but the autoflower will suffer lower yields once you switch to a flowering light schedule (12-12)
You could plan it where you grow the auto first, then plant the photo period toward the end of the autoflowers life so that the 24hr veg light sched. won’t effect the autoflowers yield.
You could technically even veg the photoperiod during the entire autoflowers life and once you harvest the auto switch the photo period to the flowering light schedule. You’ll end up with one beast of a photo period if you let it veg for that long but it may be worth it!