Yes, несколько requires the genitive case. You are saying a few months; therefore, you need the genitive plural of месяц (masculine ending), which is месяцев.