When I do meditation I notice sitting like a lotus position or something may be the best way. It`s just that it hurts after a while, mainly in my knees. This makes me to not relax as I should do. This can`t be the correct way for me to meditate?

Will the pain smooth out after some practice?