Studies have shown massage to have an immediate effect on flexibility, like this one here of an Australian hockey team
see reference study here https://www.physicaltherapyinsport.com/article/S1466-853X(05)00062-3/pdf
It has also been shown that sporadic, random massage application can have no significant long term effect on flexibility
see reference study here https://www.ncbi.nlm.nih.gov/pubmed/15155444
The key message is that with regular massage your flexibility can improve and with it reduce your chances of injury.