While some soap dispensers are designed to work with a specific type of soap, many are compatible with a wide range of liquid soaps.
To be safe, check the label on your dispenser or do a quick online search to see if there are any restrictions. But in most cases, you should be good to go with your favorite hand soap.