Yes, at the end of your chosen lock-up period you will receive your coins back. In some cases, a staking won’t have a lock-up period, but a unlocking period. In this case, you request a withdrawal from a staking pool and receive your coins when the unlocking period is complete.