Well, not really.
static web: http://www.domain.com (hosting A)
WordPress: wordpress.domain.com (hosting B)
DNS records for http://www.domain.com are pointing to hosting A server.
DNS records for wordpress.domain.com are pointing to hosting B server.
On hosting A, there is static website no wordpress.
But all links on wordpress page looks like `www.domain.com/WP/… which is bad as DNS point this to hosting A where is no wordpress, so only main site of WP is working.