If you enter your phone app and press the three dot menu, settings, call blocking & block list, then you can block calls but it's not a very good way of doing it.
You could download an app like truecaller? I don't stand behind this company as they collect all your data, but if you don't mind, then it's a great app to get rid of unwanted callers.