Yeah! @raselkhan1532 your're right approximately but Seo result would be much effective and this relationship will be for long time period. Unlike, on-page and off-page both are necessary to generate organic traffic.
You should need to work on both of them at the same time.
Hopefully, that answer will help you!