Yes, but the difficulty is that Article 3 of the ECHR prevents deportations of the person is "likely to be subjected to torture, or to inhuman or degrading treatment or punishment"
The threshold for the above definition is subjective and caan often be very low, depending on the judge hearing the case
It's why there's been a spike of asylum seekers from majority Muslim countries claiming to have converted to Christianity, because Christians in their home countries are persecuted
Abdul Azedi, the Clapham acid attacker, claimed to have converted to Christianity in his third asylum claim and was granted asylum on that basis (after having previously been convicted of sexual assault), only to have a Muslim burial after he was found dead
Similarly, Enzo Almeni claimed to have converted to Christianity on his third application for asylum before blowing himself up while attempting to carry out a terrorist attack on Rememberance Sunday
We also experience isssues deporting criminals convicted of sexual offences because they would possibly suffer ill-treatment on their return due to their country's attitudes towards sex offenders
If you're interested, there's quite a good article on the impact of the ECHR on the ability of countries to deport non-nationals here: https://ukhumanrightsblog.com/incorporated-rights/articles-index/article-3-of-the-echr/#:~:text=3 imposes an obligation not,cannot be taken into account.