Hey Miquel,
My sense is that yes, it can. Stacks is built for (and assumes) diploidy, but it can deal with haploids decently well. It will treat all of your samples the same regardless of their true ploidy, as there is no way to tell it the ploidy (notice there is no ploidy flag anywhere).
You will however need to think about how interpret the genotypes assigned to diploids and haploids - what does a heterozygote call in a haploid mean? and you may need to sort the haploids and diploids back out for subsequent analyses as well
Good luck!
-ryan