Hi, just a quick question

Will a Canon EF-S 18-55mm f/3.5-5.6 Lens fit on my Canon 400d? My Uncle is selling his but it originally came with his 300d?