No, investing the funds in your HSA is optional.
The investment feature is flexible and allows you to invest a portion of your account balance. You must have a minimum cash balance of $500 in your HSA before you can begin investing your money. The HSA investment feature is designed to promote savings for future health care expenses. Reimbursements from your HSA for current health care expenses can only be taken only from amounts that are not invested.