Yes, depending on your phone and messaging app, you can often block contacts on specific messaging apps. Check your messaging app's settings or the phone's settings to see if this option is available.