It's a crap shoot.
My guess is that since these are made in Asian countries without the RKBA traditions of the U.S., these may be intended as Airsoft fodder. So it's just a matter of luck if they'll withstand a real firearm's recoil. Some say "Same as used by Chinese Army!" etc. However, what are you going to do, call up the PLA and ask? LOL...
However, some of the green lasers sold in U.S. firearms accessory catalogs for $300-400 are obviously the $50-60 ones from DX and fleabay etc.
A green laser that's truly recoil rated from a respected laser sight maker like Insight, SureFire, LaserMax, etc. will probably cost almost as much, if not more than your carbine. Assuming it's a Kel-Tec, Beretta Storm, or a High-point etc. and not something gonzo expensive like an HK94 or one of the MP5 clones. For instance the new rail-mout low-profile unit from LaserMax unit has an MSRP of $400.
Greens from top tier sellers are still rare in the firearms market where there might be military or LEA acceptance standards to deal with. And the U.S. gun-community is a cranky perfection-demanding customer base too.
So for the 50-60 bucks, and knowing I really wanted a green on my firearm, I'd take the chance. Personaly, I like the MXDL from DX as it looks like it's made to attach to standard Picatinny rails.
Keep in mind, at night, unless the air is unusualy dry and clean, even at 5mW a green laser is visible from the side, and points YOU out almost as much as it designates the target. However a green would be great for daytime applications where a red would simply be washed out though.