Does UCSD allow you to change majors on the first day?

You would need to attend Freshman orientation and talk to an advisor. You can then plan out your schedule. I do not think it should be a problem in switching to Undeclared.