Can we use topi and te ops together to write a compute function for a new relay operator?

I am trying to create a new relay(nn) operator. While seeing the implementation of compute for other nn ops i see its either implemented using te->compute, tir or topi->cpp. Can i write compute for my new operator using combination of te->compute and topi->cpp ?