Depending what you want to achieve. Possible yes, but you likely have pathetic IO (which is generally a bottleneck for databases) and better make sure you split the VM's "strategically" because your network link between them is also very slow (likely: 1gb, clusters often run... faster. I have one here for our company and every server is connected to the switch with 200 gigabit).
Given ridiculous low amounts of RAM (actually lower than I would call a workstation in 2018 - those are computers, not workstations) you also will have problems simulating a production level larger database environment.
Good enough for some playing around, learning the technologies, testing setup - not good enough for testing a larger installation. Those machines are ancient.