My sister filed an F4 petition for me and my daughter and I was able to get my green card in 2008. However, my daughter had aged out and she was too old for CSPA consideration. As soon as I arrived in America, I filed an F2B petition for her.
If you are in the U.S. and married to a Permanent Resident, and your visa petition is current, can you apply for a Green Card while in the U.S. ? The answer may be “yes” if you entered the US legally and your immigration status is still legal.