the simple answer is no. the long answer is no. you have to buy a cd player that is listed as okay for vertical mounting. Most cd players will only work a few degrees off of horizontal, like less than a 30 degree tilt. Sony makes a couple that will work 60 degrees off of horizontal.
What i have seen done is to buy a cd player with a removeable face plate, and mount the face plate in the dash where you want. run a cable to connect the faceplate to the chassis, and hide the chassis wherever you want to.