Jsnake...dude...at least you're asking and that's huge in my book. Yes, safe to pick up and relocate. But, if you elected to just leave alone, it would likely slither off and do it's thing. When uncertain, it's best "leave alone". How I approach a snake I find in the wild will be vastly different than how a "non-snake" person would do the same. Here in OK, I direct people who ask to
www.oksnakes.org This is a good resource to our native species for identification. You will likely have something similar wherever you are located. If, by chance, it did bite you, you're not in any danger (from this species) other than a startle. They have a butt-load of tiny very sharp teeth, but no venom. Just wash it and keep clean like any cut or scratch you'd get.
Don't hesitate to ask questions.....I hope this info helped a bit.
Regards