I have installed SSL successfully but I got this error
The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link it to a trusted root certificate. Learn more about this error. The fastest way to fix this problem is to contact your SSL provider.
Yes, the site will remain hosted with InfinityFree (unless you choose otherwise). The details about which SSL setting to choose are mentioned in the article I linked.