Sure, you can. The process may vary depending on the specific device you’re using, but it generally involves following the same steps as setting a custom notification sound.
That is, simply add the recording to the list of existing notification sounds or copy the recording into the Notifications folder in your phone’s internal storage. If the folder doesn’t exist, you’ll have to create it.