Yes, you can surrender as soon as you realize you have a bad hand. You will lose half the bet you made when you submit.