You're more than welcome to use a custom engine, and no, you don't have to write it during the jam. If you've built a library, framework or engine before the jam, it's fine to use that for this jam.
I wrote a simple 8 color engine about 4 months ago, and a 3 color Bitsy inspired engine early this month. Both are written in Python and Curses from scratch.