Absolutely you can do that. You can make use of some online audio recorder to help you. Or you can take the aid of any top mac screen recorder or Windows screen recorder offline. The one I am using now can grab online radio, streaming music, online speech, game music, system audio, microphone sound, etc. in customized way.