Do the two schools have the same commitment date (Apr 30)? Can you wait until then, as you will have a better idea of your grades?
To directly answer your question, as long as you didn’t apply to college A under ED, you could de-commit and commit to College B (as long as it’s not passed the final date to commit to College B). You would likely lose the deposit you gave to College A to hold your spot.