Yes, looks like a gopher/rat snake. Good to have around. I would catch these and release them on my hillside at my previous house. Found one stranded on my floating pool chlorinator once.
A poisonous snake will usually have a broader head. If you're close enough, you can see the pits near the eyes.
Spotted two gopher snakes likely mating a few months ago while walking my dog:
Didn't realize it was two snakes until looking at the picture later.