Yes. Under most laws recording without consent is illegal. If you are aware of someone recording you in any way without your permission, you are well within your right to sue the person doing it.