F1 OPT to H1 Visa

I have a query regarding my H1B Visa Stamping

I got my H1B Visa Stamping appointment booked on August 12th at, US Consulate in Chennai, India. I booked my travel arrangements based on the same

Can I travel back to the US before October 1st? or is there any specific timeframe I cannot travel to the US as there is a change in Visa Status on my passport

I am a working employer on F1 OPT Visa and it ends on May 2023

Can you help me with this?