Is it illegal to name your child after a great man?

Not illegal.

Article 99 of the "General Principles of the Civil Law" stipulates that "citizens enjoy the right of name and have the right to decide, use and change their names in accordance with regulations, and others are prohibited from interfering, misappropriating or counterfeiting." Which name does a citizen use? At the same time, the law does not give great people the exclusive right to name, so you can name your children after great people.