So long as it’s not being exhausted into the attic you’re good. Are you talking the main plumbing vent or near the opening in the attic? Or exactly what is the route your exhaust is taking? Venting into the attic even near an opening is not advisable due to mold issues.