Yes, the temperature and pressure can be controlled to independent values because the flash has more than one component.  Naturally, as we change T and P, the composition of the vapor and liquid products change.  That is the purpose of the flash drum!