Doable, barring unforeseen circumstances.
I’m assuming you won't be waiting for checked luggage, as that is one big “circumstance“.
Wait times
Airport Wait Times
San Francisco Airport Security Wait Times | SFO checkpoint delays
BTW, SFO has an AirTrain (Red & Blue lines) take the red line - the shorter loop

Have a fun trip