Yes of course, if you set the query argument ‘post_type’ to ‘any’, it will retrieve any type except revisions and types with ‘exclude_from_search’ set to true.
Example:
$all_posts = get_posts( array( 'post_type' => 'any' ) );
Otherwise, if you don’t want ALL post types, just certain ones:
$specific_posts = get_posts( array( 'post_type' => array( 'movies', 'books', 'videogames' ) ) );
Source: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters