State tax filing

With no wash sale I would report a capital gain, but because of the wash sale my PA taxes show a loss.  Can this be correct?