Yes, in general an isolated (traditional) transformer is safer than an autotransformer.
Having said that, it really depends on the application. Autotransformers ("Variacs") are most dangerous when used to transform an AC Mains voltage that is referenced to Earth ground, and the end user thinks that it is isolating the transformed Hot/Neutral from Earth ground. It isn't. You need the traditional isolation transformer structure to give you a floating transformed AC voltage.
But if the original AC Mains type voltage is already isolated from Earth ground for some reason, using an Autotransformer should generally be fine. Again, it depends on the application.
One other thing to consider is that a Variac Autotransformer can have its setting knob bumped or otherwise changed, so the ratio setting may not always be fixed reliably.
(Sorry for the dirty picture)
View attachment 338677
https://www.popsci.com/diy/article/2009-10/what-variac/