Normally when connected to wifi mobile data is automatically turned off. You can check this by going to About phone then status then sim status.
However you can also set individual apps to specifically use mobile data should you wish. That option is within data usage then mobile data only apps .