“ Of course ” is very common expression that has a few meanings
1. “ This idea is not surprising. I expected it.” Q: Do you like travelling to foreign countries? A: Absolutely. Of course, it can be a little expensive.
2. “ Definitely! ” Q: Are you coming to Jill’s wedding? A: Of course. I wouldn’t miss it!
3. “ I understand/agree ” A: Sometimes I get homesick. B: Of course. Everyone does.
A: It’s raining heavily. I think we should take a taxi. B: Yes. Of course.