No, dyeing hair grey is not considered imitating the elderly in Islam. The intention behind dyeing hair grey is not to imitate the appearance of the elderly or mock them, but rather it is a personal aesthetic choice. Islam encourages respecting the elderly, but dyeing hair grey does not fall under the category of disrespectful imitation.