Oh yeah, you are fine. When stuff is coming out like crazy like that, nothing bad is going to go in.
In fact, before I got a proper blowoff tube, I had a couple crazy fermentations like you are describing and just capped it with aluminum foil and let the krausen run down the side.
Once it settles down (sounds like it is already), just put a clean and sanitized airlock on top of it and wait as usual. There should be no detrimental effects to the beer.