It probably isn't legal. Generally most states do not allow driving to the right of the white line. There are some circumstances that it would probably be overlooked. I have seen it done by county and state ppolice in my area.
Would there be a specific reason as to you asking?