Let me just confirm you want to go: SFO-LAS-SFO-MRY and want to skip the last segment?
If correct, no problem... this is called throw away ticketing (although not allowed, no problem as long as you don't make a habit of it).
Also, watch how full the SFO-MRY flight becomes... if a chance at a VDB, I would stick around for a bit.