If I hack his iPhone, will he know?

If I know someone's Apple ID AND password. And I log out of my iCloud on my phone, and log into theirs.

Will they be notified? And what happens once I've done it, do I receive their messages? X

Possibly because it is an unknown IP address.