Can Docker Container leverage VPN connection on a laptop?

This is more of a general "sanity check’ question in that Id like to leverage an ansible docker image or build my own for a portable ansible environment that I can put on any laptop (Windows 7 or 10 and Mac 10.8 or greater. Can the container leverage a VPN session established by the host laptop?
Sample use case: I have an ansible playbook I want to execute form within the container on my Windows laptop and the hosts are accessible via a VPN connection established by the Windows laptop (not the container). - Thank you!

A VPN service can be established on the host laptop. You need to have an SSL certificate to prevent security threats. I got this information from hp tech support since I use an HP laptop.