Be yourself!
...unless you have an abrasive personality, have annoying habits, suffer from mental illness, have severe acne, are a necrophiliac, etc.
Yes, you could be yourself despite all of that, but is it good advice? I don't think so. Humans are social animals who need attention and validation from other humans. If you are unpleasant to be around, look at or interact with, you will wind up alone. Sometimes, you just need to cover up the ugliest bits of yourself.