Absolutely! Many postures out there have modifications to help accommodate for lack of flexibility. The best thing about yoga is that it is not only about flexibility and stretching.
It is also about strength, balance, presence of mind and much more. Flexibility is an advantage of yoga and you will find yourself becoming more flexible with each class.
I am not flexible can I do yoga ?