Not really. I know a lot of old people who are friendly and lovely. It really depends on their environment and how they grew up.
What you are when you grow old is a result of how you live your life and your environment. If you don't wanna be a "cranky old man", while you are still young, practice living a happy life. Don't stress yourself, just keep on smiling!

If you live in an environment that makes you become cranky, then try moving to another place.
A lot of people hate "cranky old" people. So, act on it before it's too late!