Can the company not accept my investment?
Yes. Companies may choose not to accept your investment for any reason. One reason may be that they discovered you worked for a major competitor.
After the round closes, and the company has countersigned the contract and received the funds, your investment can no longer be canceled.