Can I travel on H4 when my H1 is under processing?

Hi Saurabh,

My H1 application is filed at USCIS and I have my H4 stamped.Can I still travel on H4 for 2 months(July-Aug) and come back for H1 stamping?Will I be questioned at POE?

Thanks alot.