Yes, but not really...
The Alarm Ward (assuming that is what you meant) alerts the creator... who could have spirits on hand to send to the where the Alarm Ward is and attack whatever tripped it... a little clunky...
A better variation (but harder to set up) is a Polarized Trap Ward with a spirit designated as safe for the polarized part and ordered to attack whatever set the trap part... Just make sure the spirit only attacks with long range methods to prevent itself from getting stuck. And unless they get a lot of hits on Assensing, it will just look like one spirit standing guard