Can you use open source code in commercial products?

Open source explained in plain language.

Yes, many open source licenses allow commercial use. That is precisely a characteristic of open source.

However, you must comply with the license conditions. Consider mentioning your name, license texts or conditions for distribution.