EPC Requirement for HMO and Section 21 Notice

what is the position where the property being let is just a bedroom HMO? Does an EPC need to be given before section 21 is served?