If one country fires a weapon into another country … isn’t that an act of war?

Asking on behalf of Mexico.