Hi Mahavir,
If I am understanding you correctly, then yes, you can create an Outbound rule in your NSG:
Go to your NSG > Settings > Outbound security rules
Click + Add
Specify by Source IP, choose your port (or use * for all) and choose the action to Deny > then click Add.
If this is helpful please accept answer.