Yes, you can extract numbers from files in other formats using Python libraries like `PyPDF2` or `openpyxl`. However, the process may be more complex than reading text files.