Yes, it is possible for the users use the primary domain email address (student@schoold.edu) for communication while the onmicrosoft.com email address remains hidden.
Even You can hide the onmicrosoft.com email accounts from the Global Address List (GAL) so that they do not appear in the address book or when users search for contacts.