Yes, you can substitute coconut flour for the almond flour or oat flour or both. However, you'll have to play around with the ratios and adjust the peanut butter and sweetener. I have not tested it before but I have seen others make some gluten-free cookie dough bars with coconut flour.