A:Answer Hey there!
No, the Apple Pencil (2nd Generation) is not compatible with the iPad 9th generation, even with iPadOS version 16.1.1. The 2nd generation Pencil is only compatible with iPads that have a magnetic charging strip on the side, such as the iPad Pro and iPad Air. The iPad 9th generation does not have this charging strip, so it can only be used with the 1st generation Apple Pencil.
I hope this helps! Let me know if you have any other questions. :)