Yes, if you make any violation during the free throw, then you lose your chance at it. Therefore, when making a free throw make sure you follow all the rules and take your chance perfectly.