Silence notifications but not calls
Yes you can simply turn off/reduce your volume to 0 for the notifications and only keep the ringer volume as required.

You can do this under settings>sounds(As you have not specified any os details or the device make or model I can only give you a common answer)