Of course. The reason for the safety of your Apple ID credentials is that they are not saved in any remote server, but are directly communicated to the Apple servers only.