It is always best to consult with a healthcare professional when experiencing any discomfort or pain during pregnancy. While some swelling in the feet can be normal during pregnancy, persistent pain and difficulty walking may indicate an underlying issue that requires medical attention. A doctor will be able to evaluate your symptoms and determine whether an x-ray is necessary. They may also recommend other diagnostic tests or treatment options based on their assessment. Remember, it's important to prioritize your health and well-being during pregnancy, so don't hesitate to seek medical advice when needed.