If it is sufficiently small and light enough, there is usually a cargo space at the top of the rocket people can use.... For a hefty fee obviously. There have been a considerable number of school scientific projects that have been done using this space for getting small satellites up there. CUBE Sat comes to mind, pretty sure that's how they got them up there... Although I wouldn't be quoting me on that