Instead of a cost, you could actually get a credit from selling the options, and some people look at this as "income" which is one of the great lies of the options market. IT IS NOT INCOME. As soon as you place the trade you have an asset and a liability, they are the same value. You have not produced income, you have sold time. True though, if the trade moves as expected, you reap the value of that time, over time.
When I was a newbie my 20 year experience CBOE and Swiss markets buddy told me "never sell naked options". A few years ago, once, I didn't listen to him...I did that once.