Can I purchase insurance for only part of the stay of my parents in the US?

Yes you can purchase for only partial duration of the entire stay. However the purpose of purchasing insurance is in the event of unanticipated medical emergencies. One can never be sure when such an emergency can happen. Having purchased insurance for part of their stay will not help in the event of an emergency during the uninsured period.