There are tons of apps on Google Play for blocking. However, usually they will only block specific numbers and Unknown numbers. Which blocking the latter can be a bad idea.
In any case, it doesn't make the call not go through at all, it would just direct it to your voicemail.