They can be programmed however you like.
Some immediately send funds to a safe place (multisig wallet) and others store the funds in the crowdfund contract until the sale is over.
My 2cents are to at least build in a mechanism to end early or cancel. Harbour DAO didn't build in an early terminate and ended up locking everyone's ETH for a month after they decided to cancel their ICO.