Can & should!
Not only can you take Vit D but you should as it is essential for health & may reduce your pain.
Most adults need 5-8000 iu of Vit D3 each day to achieve optimal levels of 50-80 (unless getting enough sun). Ideally take it with Vit. K. See http://tinyurl.com/2chkcer