Adding closing costs of purchased rental property to cost basis when selling

I watched a YouTube video and the CPA on the video stated that I can add the closing costs when I PURCHASED my rental property, to the cost basis when I SOLD the rental property.  I couldn't find anything about this when searching the Internet.  It somehow doesn't sound right.  Thoughts?