It might be technically possible, but it is difficult and inconvenient. Normally, you should have a hosting plan first.
@stevenzhu mentioned that some web hosts support Let's Encrypt automatically (so you don't have to obtain the certificate yourself, because the web host can do it for you). There's a big thread on this forum to try to make a list of the web hosting providers who make this convenient: