Every decision has opportunity cost, assuming it causes another decision to not be made. If you have limited money (and/or time), then investing in business A means your opportunity cost is not being able to invest in your second best option, business B.
Or maybe you second best option was buying a house in preferred suburb A, but because you chose to invest in the business, now you can only afford a house in suburb B.
Sure, but it's not an opportunity cost in terms of the business, it's an opportunity cost in terms of lifestyle choice. But as it stands right now, unless I ditch the whole thing I've worked on for a while and get a 9-5, me spending time on marketing and lead gen doesn't have any opportunity cost.
Anything can be viewed through the lens of opportunity cost to futility. I invested some money in something that had a 9.5% return and not something with a 9.7% return, opportunity cost. I invest my time in a business that doesn't pan out, opportunity cost vs taking a salary. Or I invest my time in a business that goes well and having kept a regular job would look equally stupid. Unless you have very clear data it's only calculable in hindsight.