In the base The Sims 3 game, you can't build bunk beds directly, so the initial answer is unfortunately no. However, that's not the end of the story.
Through custom content created by the community, it is possible to add bunk beds to your game. Modding resources and forums offer downloadable options that let you place them in your Sims' homes, so with a little extra content installed, you can achieve that classic bunk bed setup after all.