I don't know if it is advisable or not.
One possibility is to go from San Diego
up toward LA and then through Joshua Tree National Park
and then via Lake Havasu City
from there it is a fairly short distance to Grand Canyon National Park
I don't think it is going to be possible to get reservations to stay in the park at this late date, so it will be difficult to see the park at sunrise or sunset which are the best times to see it.
From there it is a fairly short drive to Las Vegas
Las Vegas on the interstates to San Francisco International Airport
is a little more than an 8 hour drive. You could divert to Yosemite National Park
on the way, or go the other way and stop off at Monterey
or you could just spend the extra time in San Francisco