While @JB's "yes" is correct, a few more points to consider:
There is no tax penalty for withdrawing any time from a taxable investment, that is, one not using specific tax protections like 401k/IRA or ESA or HSA.
But you do pay tax on any income or gain distributions you receive from a taxable investment in a fund (except interest on tax-exempt aka "municipal" bonds),
and any net capital gains you realize when selling (or technically redeeming for non-ETF funds). Just like you do for dividends and interest and gains on non-fund taxable investments.
Many funds have a sales charge or "load" which means you will very likely lose money if you sell quickly typically within at least several months and usually a year or more,
and even some no-load funds, to discourage rapid trading that makes their management more difficult (and costly), have a "contingent sales charge" if you sell after less than a stated period like 3 months or 6 months.
For funds that largely or entirely invest in equities or longer term bonds, the share value/price is practically certain to fluctuate up and down,
and if you sell during a "down" period you will lose money; if "liquid" means you want to take out money anytime without waiting for the market to move, you might want funds focussing on short-term bonds, especially government bonds, and "money market" funds which hold only very short bonds (usually duration under 90 days), which have much more stable prices (but lower returns over the longer term).