Yes they can but the humour is generally different and what a man finds funny is not near what a woman finds funny.
As for instant replies and wit I think men hold the upper hand just because Humour has become a defence mechanism over the years and a man who can make people laugh is respected regardles of his general characteristics.
Women however bite harder through humour and cut to the point more even though it can be perceived as a little more malicious, even if it's unintentional.
One thing that hasn't been talked about much is that Men generally (if they vaguely know each other) can rip the piss out of each other and take it in good heart but the reverse is rare.
Men are much more thick skinned especially regarding their own sex regarding humour whereas women seem to take offence at throwaway remarks.
Call a man ugly (from another man) and he will retort and it's all good but if a woman makes similar remarks to their own sex and all hell breaks loose