Yes, the ATPL and CPL include PPL privileges, but only if those base licences are valid. As soon as they are not (i.e. without a medical) you lose them unless you hold a separate PPL.
Just to make it clear - letting your medical lapse does not automatically make a CPL or ATPL into a PPL.
Phil