Yes. Petra is about 3 hours from Amman by the Desert Highway. Leaving at 6:30–7:00 am gives you 5–6 hours inside the site — enough for the Siq, the Treasury, the Royal Tombs and, if you are fit, the Monastery. A private tour with hotel pickup is the most comfortable option.