Controller question?

Hello, so might be a wierd questi on but i have to ask :smiley:
When adding controller support for inputs, would it be the same for PS5 & Xbox?

So while adding and testing on Xbox controller, would it then work as same if i later go and test on a PS5 controller as well, without having to change anything? & vice versa for controllers