used to say 'yes' strongly
"Can you help me?" "Of course!"
“手伝ってくれますか?” “もちろん!”
used to show something is obvious
Of course, the Olympics are not just about money.
もちろん、オリンピックはお金だけの問題ではありません。