Is a rollover from a Roth401k to fund a Roth IRA considered a contribution for purposes of the 5-yr period required to distribute tax/penalty free money after 59.5yrs?

In other words, does the rollover from a Roth 401k to fund the Roth IRA start the 5-years period required for a Roth IRA distribution to be qualified (i.e. tax and penalty free), which means that such distribution should meet the following conditions: be made after (1) 59.5 years of age AND (2) 5-yrs from first contribution to the Roth IRA account?