Staying Outside the US while taking online classes

I am in an Undergrad program in an Online university in the US. I travel around and currently I am in India. I have to stay here for a prolonged session (maybe around a year). I wanted to know if I am aloud to do this while I take online classes and also get loans from FAFSA. When I’m in the US, I live in my parent’s home in NY. I am a US citizen. I put my parent’s house as my permanent address on the FAFSA for 2020-2021. I want to know if I am not qualified to take courses or get federal loans as I am staying overseas for such a prolonged duration. Thanks for your advice.