Yes, traders can use some trading bots with defi. There is not a prohibition to do it.