Shooter (again)

I just need to know if you can do if abs(a - b) works with x and y coordinates at the same time