If you are talking about Christian faith, the belief comes from the work of the Holy Spirit plus the life lessons we encounter. From that, yes, we can change our spiritual beliefs.
However, not all who claim to believe do so with their heart but do so to influence others or to hope to escape punishment.
For example, some prisoners claim to become Christians while in jail. Some do it in hope of more leniency from the prison system or because they think they can get sympathy from judges or jurors. Some do it to try to avoid punishment. But some truly believe and change their lives. Personally, I don’t believe a religious conversion should change anyone’s punishment with regard to crimes against the state but if the heart truly changed, it is up to that individual to seek forgiveness from those who he/she wronged and pay one’s debt to society in full then demonstrate their changed lives if/when they are released.
What life lessons can we encounter that could make one believe that a man came back from the dead?