Is it ok to not greet my supervisor outside of work?

i bumped into my supervisor who i absolutely dreadfully hate , on the streets, outside the train station. I glanced at him and continued to walk away.
Is it ok to not greet my supervisor outside of work?
Post Opinion