Access Denied for user

Is this because of the permission set up on the mysql?
i.e. certain users or groups have certain permissions from certain
machines, ip-addresses.