Generally speaking it's possible.
Depending on the platform you're using to BOT the main cause of bans are from player reports. My advice would be to limit the amount of player interaction to as little as possible.
If you're still getting banned in a couple of days, Either the BOT you're running isn't that safe or you're running the BOT for far too many hours. Both can equally increase your ban rate
All in all I'd say don't BOT much more than 8 hours a day especially if you're doing a super repeatable pattern. Massive Questing profiles on the other hand, You may get a way with longer up time.
Cheers mate.