Yes, off course you can travel to India while your extension petition is pending
Dont worry if you still have a valid H-1B approval notice from USCIS AND are able to file for and obtain an H-1B visa with which to return to the US.