You can, there is nothing technically stopping you from doing this. They both by default use different port numbers. You probably would get better performance if you just used one database that way ...
MySQL and PostgreSQL are two of the most used open source SQL databases, and both fulfill the role of a general-purpose database well. How do you choose which one to use for a project? Let's look at ...