I got a wordpress website on the main domain and in a subdirectory I want got another third-party web application I would like to run.
Eg. www.example.com <– stores the main WordPress website
www.example.com/members <– runs a third party web application.
Is this possible or should I host the web application in a subdomain instead?
Yes, you can do it using IIS, nginx or Apache.