Many scholars would argue very differently on your point. Many say that terrorists kill the civilians of the enemy to provoke a response out of the enemy’s government/military. They can in turn use the response of their enemy as a recruiting tool to gain even more supporters and followers back home.