No, you can’t vent your bathroom fan into the attic. Exhaust fans should always vent outdoors with no air leaks into your home’s interior.