Yes, you can paint the vinyl trim around windows. It is important to prep the surface properly and use paint specifically designed for vinyl materials.