Yes, you don't have to use inorganic carbon sources. Some organisms, such as those upstairs and some bacteria in ponds, are typical facultative trophic bacteria. When these bacteria grow in different environmental conditions, their nutritional types will change. In the absence of organic matter, they can use light energy to fix carbon dioxide and organic matter. In the presence of organic matter, organic matter can also be used for growth.
I hope I can help you.