Can you dye floss?

I’d like to secure my patches but prefer the minimalist look for the one jacket I’m working on—can you dye floss black? Or just paint over the stitches?