@Kishan
Thank you for posting in Microsoft Q&A forum.
You can setup WSUS first, and you can setup SCCM first and then configure WSUS.
Here is a step by step guidance for your reference:
(Third-party link, just for your reference)
http://blackwaterconfig.com/configuring-wsus-sup-with-sccm-current-branch/
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.