Yes, you can extend or switch to a UK Family visa from inside the UK only if you apply for the extension before your current visa expires and meet the criteria for the Family visa. You can either extend your current family visa to continue living with the same family member in the UK or switch to a family visa from a different UK visa type (student visa or work visa).