Yes, the ideal situation would be that your volunteer work should be relevant to the job you are applying for. If you list the volunteer work on your resume, you should be prepared to discuss with the interviewer how that volunteer experience has prepared you to work for the company. For example, what skills did you gain from the volunteer experience that you feel will help you be successful at the company? So the more similar the volunteer work is with the company work, the more skills you will be able to bring to the company. Thus making you a more valuable employee.