The short answer is: it depends. There’s no clear answer to this question as it depends on numerous factors such as search engine algorithms, your website content, design, speed, technical health, and other requirements that may change over time.
If the keywords you want to rank for are not very competitive, it is possible to rank for them in a very short time. But if you choose competitive keywords, keep in mind that you need to have at least a few months at hand.