Yes, as long as the investment are still in escrow, or haven't yet been received, you may cancel any investment. Once the funding round has closed, investments cannot be canceled.