It depends on where they are going to be. Ideally, you don't want to use moldy boards indoors, but these were so marginally affected that they could be used indoors as well. It's too dry for mold to grow and thrive indoors if you would want to have them visible and untreated. If painted, the "problem" is invisible.
If they are going to be in unheated spaces, it doesn't make much difference either, as it's easy for mold to grow on wood in such areas no matter how healthy the boards are when they are installed.