Yes, it can be done. The resulting seeds will produce both male and female plants in 99% of cases. You are likely to observe a higher female:male ratio, although that is not definitive in all cases.
That being said, I don't recommend it for a number of reasons, many have already been stated and...