either that plant or one thats in with it has grown some male flowers, its common. ppl refer to these as hermies, usually due to some genetic or environmental reason.
what strain is it or is it bagseed?
its still bud, its just gunna be seedy bud. yes you can smoke it, just take the seeds out first. keep the seed pod bits tho they get ya high
you can cut down the amount of seeds by regularly plucking off any male flowers you can find.
the seeds from it should be pretty much feminized, higher chance of hermies but not much chance of a male.