I just Googled [servers with 4T of RAM], but apparently no, it does not include the RAM itself. Came up with this (about $4K base, another $44K to max it out with RAM):
https://www.broadberry.com/dual-amd-epyc-rackmount-servers/a...
https://www.broadberry.com/dual-amd-epyc-rackmount-servers/a...