Yes! Absolutely. So long as they are hosted on your account you can use MySQL databases to run scripts and applicastions.
In fact, this is the most common use of MySQL as it is secure and reliable, making it ideal for shopping carts and many other web applications.