No. Your landlord cannot take revenge (cannot retaliate) against you for taking legal action against your landlord or for using your rights, like asking the landlord to give you proper notice before entering your unit.
Here are some examples of possible cases of retaliation:
Example 1: You reported a big hole in your roof to the city. The city notifies your landlord that they are going to inspect your place. Your landlord then tells you he is raising the rent.
Example 2: You have no hot water. You asked your landlord to fix the water heater. The landlord has not fixed it or even responded to you. You contact a lawyer. The lawyer tells the landlord that they must fix the water heater and that the landlord broke the law for not fixing it right away. After this, the landlord shuts off your heat, even though the heat did not need repairs.