No, a terror attack is an attack that create a fear amongst noncombatants in order to push political objectives.
Easy example:
Attacking a hospital that healed an enemy combatant is a terror attack, even if you missile is very precise and only kill the combatant and people sharing his room. You didn't aim for civilians, but your goal with this attack is to coerce civilians (doctors and nurses here) into refusing to heal combatant again, using fear. That's the definition. In both the French dictionary, and britannica (https://www.britannica.com/topic/terrorism).