Am I a bad person for matching other people’s energy?

I am nice to people who are nice to me and I am mean to people who are mean to me I give the same energy back.
Am I a bad person for matching other people’s energy?
Post Opinion