Can i get chili pepper seeds from a green chili pepper?

my uncle had a chili plant and the peppers were long and skinny. i've heard that you can dry the pepper and get the seeds. i don't know, since it's green, if i could do so. please help, and maybe tell me the exact name of this pepper?
5 answers 5