I read you title and instantly thought: ‘Is there such thing as doing the wrong thing?’
If your fears are to strong, you have probably not come to peace with consequences, so you do the right thing. When you learn about those fears and have learned how to overcome them, you do the right thing.
If you haven’t, return and repeat learning - again the right thing to do.