It is ok to buy and sell funds frequently, because most open-end funds are like stocks, and their prices will change with the changes of the market. If you can buy at a low price and sell at a high price, then you can make a profit.
I don't recommend buying and selling funds frequently in actual investment. The price of funds is not high, and it is difficult to obtain higher returns through frequent trading.