You do not need to be flexible to do yoga or pilates. All you need to do is to be able to breathe! You will do an asana (posture) and then stay in it, and breathe. Make the asana your own, regardless of flexibility. In time, with a regular practise your flexibility will improve.