Technically speaking, anyone can become an expert witness as long as their qualifications as such are accepted by a court. By recognizing someone as an expert witness, a judge essentially makes them an expert witness.
In practice, a person can be an expert witness only if they have significant knowledge and experience in a specific field, whether through scholarship and study, a lengthy professional career, or similar circumstances.