You can also do this if you properly do seo. You need to make sure that your content is top-notch and following all on-page seo guides and also off-page seo.
You will definitely rank on google.
Well, there's no trick in this. It's just that once your blog becomes popular, you automatically start seeing these in search results.