yes, that's fine.
It's saying that the user your php is running as has no permission to relay mail on your server.
Sometimes this is caused when the "From" email is not one native to that server. Like, you put a generic email address or domain in there and there is no such real address on that server.