Definitely. Most people keep pairs in 10g tanks that are vertically oriented. Those are about 20" high but if you plant it well it won't really matter. I actually keep mine in a 10 extra high, which is about 16x9x17. Just plant it well!

Cheers,
Alex