WordPress + Custom app

Is it possible on Cloudways to have a Wordpress install share a database with a custom (non-WordPress) app that uses different table names? If it is possible, what steps would be involved? Thank you.