It's quite hard to understand this kind of stuff sometimes, the answer is nope.
Your domain takes juice from the subdomain, which simultaneously takes juice from the main domain (ONLY IF THE MAIN DOMAIN HAS A LINK POINTING TO THE SUBDOMAIN).
So, your domain does benefit from the main domain's link juice. However it benefits indirectly through the subdomain.
let me know if you didn't understand.