Best marathon runners can do it in "conventional" running shoes [0], but I agree it's easier to find the better technique barefoot or in barefoot shoes.
[0] https://marathonhandbook.com/kipchoge-running-form/