Hello Sai,
Unlike H1B where there is a LCA for specific site location/MSA and the employee is supposed to work from the work location in the LCA, H4 EAD do not have any such limitations. If your employer is ok with you working remotely from India, it should be ok.
Double check with your company’s immigration attorney though.
Do not forget to look into the tax implications if you are staying in India for more than 6 months as the residency status may change in that case.