Your inquiry is based on vague facts. Was he/she detained at the border? If yes, ICE may have issued a Notice to Appear classifying his/her as an arriving alien. For those, there is no bond by an immigration judge, only by ICE. Was he/she given a credible fear interview, or he/she is still waiting for it? A lawyer probably can ask ICE to release him/her on bond, but it depends on many factors concerning flight risk and danger to society. I don't think you can hurt by asking the judge for a bond hearing - the worst case scenario he will say no, but this will not make the situation worse than it already is.
Mr. Valk is correct ... more/better facts are needed.
Meet with an attorney.
PROFESSOR OF IMMIGRATION LAW for over 10 years -- This blog posting is offered for informational purposes only. It does not constitute an attorney-client relationship.
More details would be needed to give you an answer to this question. The best thing that your friend can do is to hire an immigration lawyer to help him with his case.
(703) 424-2979. Virginia Immigration Lawyer - Helping Future Americans Become Citizens