Mr Millfielder has been and said that yes technically you can get there and back in a day (assuming the border is open). It’s doable but you’d have to arrange your own transport and you wouldn’t get to see much of Petra. He wouldn’t do it as a day trip personally.