Yes - if you look back at your loan form you signed when taking it out im sure it will say somewhere that your shares are collateral for the loan so you cannot take those shares out until the loan is cleared.
You beat me to it Clubman - this is the vital question. Credit Unions vary. Some allow withdrawals if the savings are more than 25% of the loan. It must get Board approval.