This is an old wives' tale and should not be believed. It is perfectly normal to wash your hair when your period is on. Menstruation has nothing to do with washing hair so please do not believe such tales.
No. You should wash your hair at least every other day when you're not on it and wash your hair and body every day when you are on it. You don't want to be dirty and disgusting. So you should absolutely wash your hair.