No. However, there are third-party call-screening apps on the App Store. Also, the iPhone has filtering and ways to detect and block spam. For example, turn on Silence Unknown Callers to block phone numbers you've never had contact with. Go to Settings > Phone and turn on Silence Unknown Callers.