How to properly call dependency classes (Class not found)
Yes this is right the onlything is never try to composer require X in a modules directory even though you can include a composer.json file in the module its self 
always make sure you are in the site root. then the paths will be correct.