You probably don’t need to worry about it too much. If not, I definitely would.
There are sure studies that show that protein intake quickly after resistance training allows for increased repair/growth. Ultimately it comes down to how you feel. If you get an upset stomach having protein before bed, probably not worth it.
This is kind of interesting and kind of related:
https://www.healthline.com/health/food-nutrition/protein-before-bed