Number of tables in Moodle is close to 300, in wordpress its 12. if your hosting can handle moodle, surely it can handle wordpress easy on same box.
BUT - Do consider, that moodle requires tables converted into Barracuda which WordPress may not like, so you have to ensure WP doesn't have any issue with table conversion. most likely it will not!