Yes, this is called the "Conversion Privilege" of a term life insurance policy.
Convertible term life insurance is life insurance coverage that can be converted to permanent insurance regardless of the insured's physical condition and without a medical examination.
The insured cannot be denied coverage or charged an additional premium due to any health problems.
However, the whole (permanent) life insurance coverage will cost much more than the term life insurance policy.
There may be a date specified in the term life insurance policy that indicates the last day on which the conversion may take place for converting the term life insurance into a whole life insurance policy.