Is it rude if I don't say hi when I see my former boss in the market?

we both saw each other.
Is it rude if I don't say hi when I see my former boss in the market?
Post Opinion