Retirement tax questions

The part that was cut off was prior to the funds being rolled over to the Roth IRA they were in a work post tax 401k. The money has never been directly available to me. Even though the Roth IRA was not 5 years old do I still have to pay a penalty or does the fact that they were in a 401k count?