Usually, yes. Generally, a credit union may take money from your deposit account to make a payment on a separate debt that you owe to the credit union, such as a car loan, if you are not paying that loan on time. This is called the right of offset.
In some situations, the credit union can exercise the right of offset without letting a member know in advance that it is going to do it.
However, federal law limits what a credit union can do in some cases. For example, federal law won’t allow a credit union to offset your deposit account to pay off your consumer credit card account.