Can I withdraw money in the meantime with goal-based investing?

Yes. Unlike a pension, your money in goal-based investing is not locked. You can sell part or all of your investments at any time and have the amount transferred to your bank account.

Do bear in mind that you sell at the price of that moment, which may work out unfavourably. For unexpected expenses a savings buffer is usually a better first source. More on goal-based investing.