Can I switch if I am still in contract?

Yes, but you may need to pay an early termination charge. Check the terms before switching.