It is definately possible with hoiks. A discussion as to how to create logic gates with hoiks was one of
the first on this social forum. Preemptive to the 1.3 update, I created a sort of
legacy post on how to create universal gates with hoiks in the Guides forum. There is, of course, DicemanX's guide to
Giant Logic Gates as well.
None of these posts are useful to the mobile user, however. Mobile Terraria supports only a subset of the hoiks available PC, namely up-hoiks. That is not to say that it is impossible to create hoik-based logic gates on mobile, just that you have to modify hoik track and junction formulations to work only with up-hoiks. An example of this was shown by Joe in some random thread buried deep in the forum pages. I've deleted both Terraria and my Windows partition, so I can't show you on the fly, but suffice it to say, it is possible. I would personally use a different method anyhow, like a mechanism of spear traps and projectile pressure plates hidden from the Deathsickle offscreen.